import type { AxiosPromise } from 'axios'
import request from '@/utils/request'
import type { MenuData } from '~/layouts/basic-layout/typing.ts'

// 获取路由
export function getRouters(): AxiosPromise<MenuData> {
  return request({
    url: '/system/menu/getAntRouters',
    method: 'get',
  })
}
